Vue.prototype.$vt_message=function(type,mess,time,func){
    var time=time|1;
    //全局配置
    this.$Message.config({
        top: 100,
        duration: time
    });
    var _this=this;
    switch(type){
        case "success":
            _this.$Message.success({
                content:mess,
                duration:time,
                onClose: func
            });
            break;
        case "error":
            _this.$Message.error({
                content:mess,
                duration:time,
                onClose:func
            });
            break;
    }
}

Vue.prototype.$vt_notice=function(type,title,desc,time,func){
    var time=time|3;
    //全局配置
    this.$Notice.config({
        top: 60,
        duration: time
    });
    var _this=this;
    switch(type){
        case "warning":
            _this.$Notice.warning({
                title:title,
                desc:desc,
                duration:time,
                onClose: func
            });
            break;
        case "error":
            _this.$Notice.error({
                title:title,
                desc:desc,
                duration:time,
                onClose: func
            });
            break;
    }
}
